<?php
return array(
    'request' => [
        \common\behavior\RecordRequestRouteBehavior::class,
    ],
    'event_log' => [
        'common\\behavior\\RecordEventBehavior', // 记录EventLog
    ],
    'after_create_exist' => [
        \common\behavior\DesignMultiEpisodeCreateCheckBehavior::class, // 概念多级重复添加, 处理集关系
    ],
    'after_entity_created' => [
        \common\behavior\FillEntityDefaultDataBehavior::class, //自动填充清单默认数据
//        \common\behavior\EntityAutoPublishBehavior::class, //增加实体,自动发布清单
    ],
    'after_entity_updated' => [

    ],
    'after_project_created' => [
        \common\behavior\PushProjectCreatedEventBehavior::class, //通知用户项目已经创建
        \common\behavior\TaskRelationProjectTableCreatedEventBehavior::class, // 创建task_relation_project_分表
    ],
    'after_project_deleted' => [
        \common\behavior\TaskRelationProjectTableDeleteEventBehavior::class, // 删除task_relation_project_分表
    ],
    'after_project_update' => [
        \common\behavior\EverydayReportPushBehavior::class, // 日报推送行为扩展
    ],
    'after_template_todo_update' => [
        \common\behavior\TemplateTodoUpdateBehavior::class, // 标准任务模板配置更新行为扩展
    ],
    'before_project_insert' => [
        \common\behavior\DealProjectDireTemplateBehavior::class, //通知用户项目已经创建
    ],
    'app_end' => [
        \common\behavior\WriteEventBehavior::class
    ],

    'after_review_request_created' => [// 审核申请创建
        \common\behavior\ReviewRequest\TaskReviewRequestCreateNotifyInEntityChatBehavior::class,
    ],

    'after_review_request_node_created' => [
    ],
    'after_review_request_node_updated' => [
    ],

    // order_task_file_list 订单文件传输列表
    'after_order_task_file_list_created' => [
        \common\behavior\UpdateOrderStatusBehavior::class,
    ],
    'after_order_task_file_list_updated' => [
        \common\behavior\UpdateOrderStatusBehavior::class,
    ],

    //更新任务提醒时间的状态
    'after_task_clock_created' => [
        \common\behavior\UpdateTaskClockStatusBehavior::class
    ],

    'global_notice_publish_after' => [                                                                                  // 公告发布
        \common\behavior\CommonMessagePushing\GlobalNoticePublishBehavior::class,                                       // 新: 公告消息通知
    ],

    // 工单
    'task_work_order_created' => [
        \common\behavior\TaskWorkOrderCreatedReceiverNotifyBehavior::class,
    ],
    'task_work_order_user_added' => [
        \common\behavior\UpdateWorkOrderUserAddedBehavior::class,
        \common\behavior\TaskWorkOrderUserAddedNotifyBehavior::class,
    ],
    'task_work_order_user_deleted' => [
        \common\behavior\UpdateWorkOrderUserDeletedBehavior::class,
    ],

    'after_note_create' => [
//        \common\behavior\NoteCommentNotifyDemandRelatedPeopleBehavior::class,                                         // 已迁移：需求有新评论
    ],
    'after_note_update' => [
        \common\behavior\NoteCommentUpdateBehavior::class,
    ],
    'note_relation_changed' => [
        \common\behavior\NoteRelationChangeAsyncBehavior::class,
    ],
    'note_created_after' => [                                                                                           // note 创建
        \common\behavior\CommonMessagePushing\NoteNewCommentBehavior::class,                                            // 旧: 需求有新评论
    ],
    'demand_order_require_confirm' => [                                                                                 // 需求单确认通知
        \common\behavior\CommonMessagePushing\DemandOrderRequireConfirmBehavior::class,                                 // 新：需求单需要确认，通知环节确认人]
    ],
    'demand_order_publish' => [                                                                                         // 需求单发布
        \common\behavior\CommonMessagePushing\DemandOrderPublishBehavior::class,                                        // 新： 需求单发布，通知创建人、提出人、确认人
    ],
    'origin_node_reaching' => [                                                                                         // 计划交付节点
//        \common\behavior\CommonMessagePushing\OriginNodeReachingBehavior::class,                                        // 新：计划交付节点 准时交付 通知
    ],
    'task_repair' => [                                                                                                  // 任务返修
        \common\behavior\TaskRepairUpdateEntityAsyncBehavior::class,
        \common\behavior\TaskRepairNotifyRelatedPeopleBehavior::class,
        \common\behavior\CommonMessagePushing\TaskRepairBehavior::class,                                                // 旧: 任务返修通知
    ],
    'entity_change_after' => [
        \common\behavior\CommonMessagePushing\EntityAttributeChangeBehavior::class,                                     // 旧: 实体属性变更通知
        \common\behavior\CommonMessagePushing\EntityRelationChangeBehavior::class,                                      // 旧: 实体属性变更通知
        \common\behavior\CommonMessagePushing\EntityDeprecateBehavior::class,                                           // 旧: 实体废除发送任务通知
    ],
    'entity_closed_operate' => [ // 任务废除
//        \common\behavior\EntityCloseOperateAsyncSendProducerMessageBehavior::class,                                   // 已迁移: 实体废除发送任务消息到制片小助手
    ],
    'entity_deprecated' => [                                                                                            // 实体废除
    ],
    'task_closed_operate' => [ // 工序任务废除
//        \common\behavior\TaskCloseOperateAsyncSendProducerMessageBehavior::class,                                       //已迁移: 异步通知制片
        \common\behavior\TaskCloseOperateAsyncCheckEntityStatusBehavior::class, // 异步检查实体状态
    ],
    'task_status_change_after' => [                                                                                     // 任务状态变更
        \common\behavior\CommonMessagePushing\TaskStatusChangeBehavior::class,                                          // 旧: 任务启用/废除通知制片
//        \common\behavior\CommonMessagePushing\TaskDeprecateBehavior::class,                                             // 新：任务废除,通知任务执行人+参与人 【暂停，沿用旧消息】
//        \common\behavior\CommonMessagePushing\TaskReopenBehavior::class,                                                // 新：任务重启,通知任务执行人+参与人 【暂停，沿用旧消息】
    ],
    'task_assign' => [                                                                                                  // 任务分配
        \common\behavior\CommonMessagePushing\TaskAssignBehavior::class,                                                // 旧：任务分配
        \common\behavior\CommonMessagePushing\TaskAssignToDepartmentBehavior::class,                                    // 旧：任务分配 - 部门
//        \common\behavior\CommonMessagePushing\TaskAssignV2Behavior::class,                                              // 新：任务分配,通知任务执行人+参与人      【暂停，沿用旧消息】
    ],
    'task_update' => [                                                                                                  // 任务更新
        \common\behavior\CommonMessagePushing\TaskUpdatePlanBehavior::class,                                            // 新：任务计划时间变更通知
    ],
    'task_review' => [                                                                                                  // 任务提交审核
//        \common\behavior\CommonMessagePushing\TaskReviewEventV2Behavior::class,                                         // 新：任务提交审核,通知审核人+环节制片    【暂停，沿用旧消息】
//        \common\behavior\CommonMessagePushing\TaskReviewV2Behavior::class,                                              // 新：任务审核节点通知,通知审核人        【暂停，沿用旧消息】
//        \common\behavior\CommonMessagePushing\TaskReviewResultV2Behavior::class,                                        // 新：任务审核结果通知                 【暂停，沿用旧消息】
    ],
    'task_review_created_after' => [                                                                                    // 任务提交审核
        \common\behavior\CommonMessagePushing\TaskReviewBehavior::class,                                                // 旧：任务审核通知
        \common\behavior\CommonMessagePushing\TaskReviewOutsourceBehavior::class,                                       // 旧：任务审核通知（外部）
        \common\behavior\CommonMessagePushing\TaskReviewActiveNodeBehavior::class,                                      // 旧：任务审核通知（下一节点）
        \common\behavior\CommonMessagePushing\TaskReviewActiveNodeOutsourceBehavior::class,                             // 旧：任务审核通知（甲方）
    ],
    'task_review_finished_after' => [                                                                                   // 任务审核完毕
        \common\behavior\CommonMessagePushing\TaskReviewResultBehavior::class,                                          // 旧：任务审核完毕通知
    ],
    'task_assign_withdraw' => [ // 工序任务分配状态撤回
    ],
    'task_done_after' => [                                                                                              // 任务完成
        \common\behavior\CommonMessagePushing\TaskUpstreanDoneBehavior::class,                                          // 旧：下游任务 上游完成检查
    ],
    'task_done_with_file_after' => [                                                                                    // 任务完成，带文件更新
//        \common\behavior\CommonMessagePushing\TaskFileInformingBehavior::class,                                          // 新：下游任务 上游文件发布更新通知
    ],
    'task_status_update_after' => [ // 任务状态after变更
        \common\behavior\TaskStatusAfterUpdateBehavior::class
    ],
    'task_reference_asset_update_after' => [ // 任务task json reference_asset同步甲乙双方数据
        \common\behavior\TaskJsonReferenceAssetUpdateAfterBehavior::class
    ],
    'delay_order_created_after' => [                                                                                    // 延期单
        \common\behavior\CommonMessagePushing\DelayOrderConfirmBehavior::class,                                         // 旧：延期单待确认
        \common\behavior\CommonMessagePushing\DelayOrderResultBehavior::class,                                          // 旧：延期单确认结果
    ],
    'review_request_created_after' => [                                                                                 // 审核反馈创建
        \common\behavior\CommonMessagePushing\PlanReviewBehavior::class,                                                // 旧: 有新的排期待确认
        \common\behavior\CommonMessagePushing\DelayReviewBehavior::class,                                               // 旧: 有新的延期待确认
        \common\behavior\CommonMessagePushing\DelayReviewBatchBehavior::class,                                          // 旧: 有新的延期待确认(批量)
    ],
    'review_request_finished_after' => [                                                                                // 审核反馈结束
        \common\behavior\CommonMessagePushing\PlanReviewResultBehavior::class,                                          // 旧: 排期确认结果通知
        \common\behavior\CommonMessagePushing\OrderReviewResultBehavior::class,                                         // 旧: 订单审核结果通知
        \common\behavior\CommonMessagePushing\OrderReviewResultOutsourceBehavior::class,                                // 旧: 订单审核结果通知(外包)
        \common\behavior\CommonMessagePushing\DelayReviewResultBehavior::class,                                         // 旧: 延期确认结果通知
        \common\behavior\CommonMessagePushing\DelayReviewResultBatchBehavior::class,                                    // 旧: 延期确认结果通知(批量)
    ],
    'order_create_after' => [
        \common\behavior\CommonMessagePushing\OrderNeedReviewBehavior::class,                                               // 旧: 有外包订单需要审核
    ],
    'sign_in_after' => [                                                                                                // 登录后
        \common\behavior\CommonMessagePushing\NotificationTaskSetDailyBehavior::class,                                  // 旧：每日登录待办提醒
    ],
    'timelog_added' => [ //时间日志新增
        \common\behavior\TimelogAddedNotifyUserBehavior::class,
    ],
    'timelog_stopped' => [ //时间日志关闭
        \common\behavior\TimelogStoppedNotifyUserBehavior::class,
    ],


    'after_version_created' => [ // 版本创建异步事件
        \common\behavior\VersionCreateTaskLatestVersionUpdateBehavior::class,
        \common\behavior\VersionCreateInsideVersionCreateBehavior::class,
    ],

    'after_version_updated' => [ // 版本更新事件
        \common\behavior\VersionPublishedAsyncQueueBehavior::class,
    ],

    'update_original_plan_note' => [ // 审核确认
        \common\behavior\UpdateOriginalPlanNodeBehavior::class,
    ],

);
